#ifndef _GAME_TEST_HPP
#define _GAME_TEST_HPP

#include "common.hpp"
#include "core/Scene.hpp"
#include "video/Screen.hpp"

namespace yep
{
/**@author Tales84
 * @brief Tests if a game can be instantied and be ran.
 *
 * The most basic test, it isn't even a application! It only creates a blank screen
 *  and exits after the pressing of any key.
 **/
class GameTest: public Scene
{
public:
    GameTest() {
        //Nothing to do.
    }
    ~GameTest() {
        //Nothing to do.
    }
    void setup( Game &game ) {
        // Nothing to do;
    }
    void cleanup( Game &game ) {
        //Nothing to do.
    }
    void logic( Game &game ) {
        SDL_Event event;

        while( SDL_PollEvent( &event ) ) {
            switch( event.type ) {
            case SDL_QUIT:
            case SDL_KEYDOWN:
                game.exit();
                break;
            }
        }
    }
    void draw( Game &game ) {
        // Nothing to do;
    }
};


}

#endif // _GAME_TEST_HPP

